package com.jy.framework.sys.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.jy.framework.base.TreeEntity;
import com.jy.framework.sys.dto.AreaTreeDTO;
import com.jy.framework.sys.entity.SysAreaEntity;

import java.io.Serializable;
import java.util.List;

/**
 * @Author: JuiceYan
 * @Description: 处理数表parentIds
 * @Class: TreeService
 * @Date: 22:47 2018/12/14
 */
public interface TreeService {

    <T extends TreeEntity> void updateParentIds(IService<T> service, T entity);

    <T extends TreeEntity> void delByParentId(IService<T> service,Serializable id);

    <T extends TreeEntity> void fillParentIds(IService<T> service);

    <T extends TreeEntity> List<T> fillParentName(IService<T> sysMenuService);
}
